class Comments {
    Parent parent
    String parentName
    String content = ''
    Date createTime = new Date()
    Long classId
    static constraints = {
        parent(nullable:false)
        parentName(nullable:false,blank:false)
        classId(nullable:false)
        content(size: 1..3000,blank:false)
    }
}
